<template>
  <common-group :descObj="descObj" :yearMonthList="yearMonthList" :infoList="infoList" ref="commonGroupRef" ></common-group>
</template>

<script setup >
import { ref, reactive, onMounted, computed, watch } from "vue";
import { useRouter, useRoute } from "vue-router";
import { tip, get, post, put, del, ddo, elConfirm } from "@/common";


const descObj = {

        urlMark:'print',

        previousPdIds: [1020,1030],
        currentPdId: 1040,

        previousNode: [{
          colLabel:"前处理量",
          colProp: "pretreat_num"
        },{
          colLabel:"染色量",
          colProp: "dye_num"
        }],

        currentNode: {
          colLabel: "印花量",
          colProp: "print_num",
        },
      };

import CommonGroup from '../common-group.vue';
const commonGroupRef = ref();

//获取年月列表
const yearMonthList = ref([]);
const getYearMonthData = () => {
  get("/plan/manager/year-month-list").then((result) => {
    yearMonthList.value = result.data.list;
  });
};
getYearMonthData();

//获取基础信息
const infoList = ref([]);
const getInfoList = () => {
  get("/plan/manager/info").then((result) => {
    infoList.value = result.data;
  });
};
getInfoList();

const refreshData = ()=>{
  commonGroupRef.value.refresh();
}
</script>

<style scoped >

</style>